package BUS;

import junit.framework.Assert;
import junit.framework.TestCase;


public class UtilitiesTest extends TestCase {

	public UtilitiesTest(String name) {
		super(name);
	}

	@Override
	protected void setUp() throws Exception {
		super.setUp();
	}	
	
	
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testFormatInputData() {
		fail("Not yet implemented");
	}
	
	public void testFormatInputData01(){
		Utilities util = new Utilities();
		String actual =util.FormatInputData("tôi");
		String expected = "toi";
		Assert.assertEquals(expected, actual);		
	}
	
	public void testFormatInputData02(){
		Utilities util = new Utilities();
		String actual = util.FormatInputData("tÔi");
		String expected = "toi";
		Assert.assertEquals(expected, actual);		
	}
	
	public void testFormatInputData03(){
		Utilities util = new Utilities();
		String actual = util.FormatInputData(" tôi ");
		String expected = "toi";
		Assert.assertEquals(expected, actual);		
	}
	
	public void testFormatInputData04(){
		Utilities util = new Utilities();
		String actual = util.FormatInputData("tôi tỚi");
		String expected = "toi toi";
		Assert.assertEquals(expected, actual);		
	}
	
	public void testFormatInputData05(){
		Utilities util = new Utilities();
		String actual = util.FormatInputData("123 tưi tôI tẮt đẤy");
		String expected = "123 tui toi tat day";
		Assert.assertEquals(expected, actual);		
	}
	
	public void testFormatInputData06(){
		Utilities util = new Utilities();
		String actual = util.FormatInputData("");
		String expected = "";
		Assert.assertEquals(expected, actual);		
	}

}
